/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.team1160.beta.season2011.output.drivetrain;

import com.team1160.beta.season2011.output.OutputCommand;

/**
 * A command to the drivetrain.
 * @author sakekasi
 */
public class DriveTrainCommand extends OutputCommand{
    //index constants
    public static final int JOYSTICK_Y_AXIS=1;
    public static final int JOYSTICK_Z_AXIS=2;


    public DriveTrainCommand(double yAxis, double zAxis ) {
        super();
        this.data[DriveTrainCommand.JOYSTICK_Y_AXIS]=yAxis;
        this.data[DriveTrainCommand.JOYSTICK_Z_AXIS]=zAxis;
    }


    public double[] getData() {
        return new double[]{this.data[DriveTrainCommand.JOYSTICK_Y_AXIS],
        this.data[DriveTrainCommand.JOYSTICK_Z_AXIS]};
    }

    public void setData(double[] command) {
        this.data=command;
    }

}
